
const  Home=()=> import("@/pages/Home")
const  Login=()=>import("@/pages/Login") 
const Register=()=>import("@/pages/Register")
const Search=()=>import("@/pages/Search")
const Test=()=>import("@/pages/Test")
const Detail = () => import("@/pages/detail");
const AddCartSuccess=()=>import ("@/pages/AddCartSuccess")
const ShopCart=()=>import ("@/pages/ShopCart")
export default[
    {path:"/",
        component:Home
        },
        {
            path:"/login",
            component:Login,
            meta:{
                isHiddenFooter:true, 
            }
        },
        {
            path:"/register",
            component:Register,
            meta:{
                isHiddenFooter:true, 
            }
        },
        {
            path:"/search",
            component:Search
        },
        {
            path:"/test",
            component:Test
        },
        {
            path:"/detail/:id",
            component:Detail
        },
        {
            path:"/addcart_success",
            component:AddCartSuccess

        },
        {
          path:"/shopcart",
          component:ShopCart
        }

]